package com.nebula.salary.model.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 常量表
 * </p>
 *
 * @author codex
 * @since 2022-01-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_common")
@ApiModel(value="Common对象", description="常量表")
public class Common implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手动存入该字段所表示含义")
    @TableId(value = "common_id", type = IdType.ASSIGN_ID)
    private String commonId;

    @ApiModelProperty(value = "可为任意值")
    private String def;

    @ApiModelProperty(value = "描述所用字段含义")
    private String instruction;
    
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;


    public static final String COMMON_ID = "common_id";

    public static final String DEF = "def";

    public static final String INSTRUCTION = "instruction";

    public static final String CREATED_TIME = "created_time";

    public static final String UPDATED_TIME = "updated_time";

}
